package com.reone.jsbridgedemo.utils;

import android.webkit.JavascriptInterface;

import com.reone.jsbridgedemo.utils.LogUtils;
import com.reone.talklibrary.TalkApp;

/**
 * Created by wangxingsheng on 2018/7/13.
 */
public class NativeMethodList {

    public NativeMethodList() {
        LogUtils.d("NativeMethodList init");
    }

    @JavascriptInterface
    public void show(){
        TalkApp.talk("调用了native无参方法");
        LogUtils.d("js invoke NativeMethodList.show");
    }

    @JavascriptInterface
    public void show(String text){
        TalkApp.talk("调用了native有参方法,参数"+text);
        LogUtils.d("js invoke NativeMethodList.show("+text+")");
    }
}
